package businesslogic.userBl;

import java.rmi.Naming;
import java.rmi.RMISecurityManager;
import java.util.ArrayList;

import po.userPO.StudentPO;
import po.userPO.UserPO;
import dataservice.ResultMessage;
import dataservice.userDataService.UserDatabaseService;
import vo.userVO.StudentVO;
import vo.userVO.TeacherVO;
import vo.userVO.UniversityDeanVO;
import vo.userVO.UserVO;

public class RunTest {

	private static final String ADDRESS_STRING="localhost";

	public static void main(String[] args) {
		
		
		UserDatabaseService userDatabaseService;
		if(System.getSecurityManager()==null)
            System.setSecurityManager(new RMISecurityManager());
		try {
			userDatabaseService=(UserDatabaseService)Naming.lookup("rmi://"+ADDRESS_STRING+":8888/userData");

			UserPO userPO=userDatabaseService.find("T00001");
			System.out.println(userPO==null);
			System.out.println(userPO.getUserType());
			
			
			
		} catch (Exception e) {
			
			e.printStackTrace();
			
		}
//		
		
	}
	
}
